package com.xly.webclick.adapter;

import android.databinding.ViewDataBinding;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.xly.webclick.base.BaseItemViewModel;


/**
 * Created by amos on 2018/5/15.
 */

public class CommonBindingViewHolder extends RecyclerView.ViewHolder {

    private BaseItemViewModel viewModel;

    public CommonBindingViewHolder(View itemView) {
        super(itemView);
    }

    public void setViewModel(BaseItemViewModel viewModel) {
        this.viewModel = viewModel;
    }

    public BaseItemViewModel getViewModel() {
        return viewModel;
    }

    private ViewDataBinding binding;

    public ViewDataBinding getBinding() {
        return binding;
    }

    public void setBinding(ViewDataBinding binding) {
        this.binding = binding;
    }
}
